package String.Builder;

public class StringBuilderDemo {
    public static void main(String[] args) {
        StringBuilder sb=new StringBuilder();//创建一个空白可变字符串，不含任何内容
        System.out.println("sb:"+sb);
        System.out.println("sb.length()"+sb.length());

        //根据字符串内容，创建可变字符串对象
        StringBuilder sb2=new StringBuilder("hello");
        System.out.println("sb2:"+sb);
        System.out.println("sb2.length()"+sb2.length());

    }

}
